package com.dangdang.sharding.dp.filter.spring.core;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.dangdang.sharding.dp.filter.dp.HTMLFilter;
import com.dangdang.sharding.dp.filter.dp.SensitiveFilter;

@Component
public class MyRegistryConfigurer extends RegistryConfigurer {
	@Resource
	private HTMLFilter htmlFilter;
	@Resource
	private SensitiveFilter sensitiveFilter;
	@Override
	public void registerFilter(InterceptorRegistry registry) {
		registry.addFilter(htmlFilter).addFilter(sensitiveFilter);
	}

}
